package org.apache.dolphinscheduler.dao.mapper;

import org.apache.dolphinscheduler.dao.entity.Role;

import org.apache.ibatis.annotations.Param;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public interface RoleMapper {

    IPage<Role> queryRolePage(Page page, @Param("roleName") String roleName);

    List<Role> listAll();
    List<Role> list(Role role);
    Role selectById(Integer id);
    Role selectByRoleName(@Param("roleName") String roleName);

    int delete(Integer id);

    int insert(Role record);

    int update(Role record);
}
